export default class Dep {
  static target;
  constructor() {
    this.subs = [];
  }

  addSub(watcher) {
    // if (Dep.target) {
    this.subs.push(watcher);
    // }
  }

  notify() {
    this.subs.forEach((watcher) => {
      watcher.update();
    });
  }
}
